package com.kgcx.system.domain;

import com.kgcx.dbutils.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "t_sys_app_version")
@ApiModel(value = "app版本")
public class AppVersion extends BaseDomain {

    /**
     * 类型，1=android司机端
     */
    @ApiModelProperty(value = "类型，1=android司机端,2=android用户端", required = true, example = "1")
    private Integer type;


    /**
     * 版本号
     */
    @ApiModelProperty(value = "版本号", required = true, example = "1.1")
    private String version;

    /**
     * 版本号整数型
     */
    @ApiModelProperty(value = "版本号整数型", required = true, example = "11")
    private Integer versionNo;

    /**
     * 下载地址
     */
    @ApiModelProperty(value = "下载地址", required = true, example = "http://file.hangkechina.com/kgcxdriver.apk")
    private String url;

    /**
     * 强制更新，0=否，1=是
     */
    @ApiModelProperty(value = "强制更新，0=否，1=是", required = true, example = "1")
    private Integer enforce;

    /**
     * 版本描述
     */
    @ApiModelProperty(value = "版本描述", required = true, example = "1.1版本发布啦！")
    private String description;

}